package com.treetao.union.db.model;

import com.treetao.union.db.model.base.TTBaseVO;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

import javax.xml.ws.BindingType;

import org.apache.ibatis.annotations.Many;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 商品信息
 * </p>
 *
 * @author Dev.M
 * @since 2020-04-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("mall_p_sku")
public class MallPSku extends TTBaseVO<MallPSku> {

	private static final long serialVersionUID = 1L;

	/**
	 * SKU编号
	 */
	private String skuno;
	/**
	 * SKU名称
	 */
	private String name;
	private Long spuId;
	/**
	 * 成本价
	 */
	private Double priceCost;
	/**
	 * 销售价
	 */
	private Double priceSale;
	/**
	 * 划线价格
	 */
	private Double priceDel;
	/**
	 * 主图
	 */
	private String thumbnail;
	/**
	 * 介绍图
	 */
	private String imgs;
	/**
	 * 推荐
	 */
	private Boolean isrec;

	/**
	 * 销量，异步统计
	 */
	private Integer saledNum;
	  /**
     * 一级分类
     */
	private Long refOnecataId;
	 /**
     * 二级分类
     */
	private Long refTwocataId;

	/**
	 * 页面选中的属性
	 */
	@TableField(exist = false)
	private String attrItemIds;
	/**
	 * 页面选中的服务保障
	 */
	@TableField(exist = false)
	private String serviceIds;

}
